package org.liuhy.node
{
	import flash.events.MouseEvent;	
	import mx.events.DragEvent;	
	public class StartFlowNode extends FlowNode
	{	
		//开始节点只能引出一条出线,并且箭头不能与之相连;
		public function StartFlowNode(p_x:int,p_y:int,p_width:int,p_height:int)
		{
			super(p_x,p_y,p_width,p_height);
			this.title 	= "始";
			this._textArea.enabled  = false;	
		}		
		override public function draw():void{
			this.graphics.clear();			
			this.graphics.beginFill(0xFFFFFF,1);
			this.graphics.lineStyle(1,this.borderColor,2);
			this.graphics.drawCircle(this.width/2,this.height/2,this.width/2-5);
			this.graphics.endFill();
		}
		override public function isPermitAllowDrop():Boolean{
			return false;
		}
		override public function isPermitFromDrop():Boolean{
			if(this._outLineList.length>0) return false;
			return true;
		}	
		override public function get type():String{
			return "start";
		}	
	}
}